<?php
/**
 * hidden 필드를 출력한다.
 *
 * @author cwsong
 * @since 0.3
 * @package $int bc_no 게시판번호
 */
function esample_esno_field($val){
    if(!empty($val)){
        echo '<input type="hidden" name="es_no" value="'.$val.'" />';
    }
}
?>
<form id="<?php echo EPART_PLUGIN_NAME?>_form" action="<?php echo $db_url; ?>" method="post">
    <?php esample_esno_field($_REQUEST['es_no']); ?>
    <?php wp_nonce_field(EPART_PLUGIN_NAME."-add-update"); ?>
    <fieldset>
        <table class="form-table">
            <tr>
                <th scope="row">
                    <label for="es_name">이름</label>
                </th>
                <td>
                    <input type="text" id="es_name" name="es_name" value="<?php echo $row->es_name; ?>" style="width: 300px" maxlength="100" />
                </td>
            </tr>
            <tr>
                <th scope="row">
                    <label for="es_title">제목</label>
                </th>
                <td>
                    <input type="text" id="es_title" name="es_title" value="<?php echo $row->es_title; ?>" style="width: 300px" maxlength="100" />
                </td>
            </tr>           
        </table>
        <p class="submit">
            <input type="submit" class="button-primary" value="<?php echo ($_GET["mode"]=="add") ? "추가" : (($_GET["mode"]=="update") ? "수정" : "")?>" />
        </p>
    </fieldset>
</form>

